<div class="col-lg-3 col-lg-offset-1">
	<h2><?php echo __('Categories')?></h2>
	<div class="category">
		<ul>
		<?php 
		$select = '';
		foreach($productCategory as $category):
			if($category['ProductCategory']['id'] == @$id && @$id != 5) $select = 'class="active"';
			else $select = '';
			
			if($category['ProductCategory']['id'] == 5) {
				$link = '/products/lists';
				if($this->params['action'] == 'lists' || $this->params['action'] == 'detail') $select = 'class="active"';
			} else {
				$link = '/products/view/'. $category['ProductIntro'][0]['id'];
			}
			
			
		?>
			<li><a <?php echo $select?> href="<?php echo $link;?>"><?php echo $category['ProductCategory']['name' . $code];?></a></li>
		<?php endforeach;?>
		</ul>
	</div>
</div>